package etnorservice.etnor_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import etnorservice.etnor_service.domain.RolePermissionDomain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2025/03/24/14:00
 **/
@Mapper
public interface RolePermissionMapper extends BaseMapper<RolePermissionDomain> {
    void deleteByRoleId(@Param("roleId") Integer roleId);
    void deleteByPermissionId(@Param("permissionId") Integer permissionId);
    void batchInsert(@Param("permissions") List<RolePermissionDomain> permissions);
}
